package one.three.fourtyThree;

import java.io.*;

public class ShowFolder {

	public static void show(String s, int n) throws Exception {
		File f = new File(s);
		String e = "";
		for (int i = 0; i <= n; i++) {
			e += " ";
		}
		if (!f.isDirectory()) {

			System.out.println(e + s);
		}
		if (f.isDirectory()) {
			System.out.println(e + s + ":");
			File[] fs = f.listFiles();

			for (File ele : fs) {

				show(ele.getAbsolutePath(), n + 2);
			}
		}

	}

	public static void main(String[] args) throws Exception {
		show("D:/Pictures", 0);

	}

}
